import request from '@/router/axios'

const orc = '/baidu/rest/2.0/ocr/v1/general';
const token = '/baidu/oauth/2.0/token?grant_type=client_credentials&client_id=FBhomNS3si1le7xefNc9wbl9&client_secret=fPTd3lIkdGhfoTVIr7Qkg6RAugSTquEC'
export function orcFun (obj) {
  return request({
    url: orc,
    method: 'post',
    data: obj,
    headers:{
       serialize:true,
       contetTypeForm:true
    }
  })
}

export function getTok (obj) {
  return request({
    url: token,
    method: 'post',
    param: obj,
  })
}
